package com.ideal.lx_mss.entity;

import com.google.gson.JsonObject;
import lombok.Data;
import org.json.JSONArray;
import org.json.JSONObject;


import java.util.Date;
import java.util.List;

/**
 * 对账单
 */
@Data
public class CheckMssEntity {

    /**
     * 总记录数
     */
    private Integer send_record;

    /**
     * 处理结束时间
     */
    private Date stop_time;

    /**
     * 表名
     */
    private String itfcode;
    /**
     * 来源
     */
    private String srccode;
    /**
     * 批次编号
     */
    private String batchnum;
    /**
     * 数据库架构名
     */
    private String schema_name;
    /**
     * 处理开始时间
     */
    private Date start_time;
    private String filename;
    /**
     * 对账单类型 fc全量 rc增量
     */
    private String datatype;
    /**
     * 省份编码
     */
    private String provcode;

    private String dataacct;

    /**
     * 分片键
     */
    private String shardingKey;
    /**
     * 发送时间
     */
    private Date sendtime;
    /**
     * 对账详情
     */
    private String dataloadStr;

    private List<JsonObject> dataload;

    /**
     * 拉起时间
     */
    private Date create_time;

    public CheckMssEntity() {
    }

    public CheckMssEntity(Integer send_record, Date stop_time, String itfcode, String srccode, String batchnum, String schema_name, Date start_time, String filename, String datatype, String provcode, String dataacct, String shardingKey, Date sendtime, String dataloadStr, List<JsonObject> dataload, Date create_time) {
        this.send_record = send_record;
        this.stop_time = stop_time;
        this.itfcode = itfcode;
        this.srccode = srccode;
        this.batchnum = batchnum;
        this.schema_name = schema_name;
        this.start_time = start_time;
        this.filename = filename;
        this.datatype = datatype;
        this.provcode = provcode;
        this.dataacct = dataacct;
        this.shardingKey = shardingKey;
        this.sendtime = sendtime;
        this.dataloadStr = dataloadStr;
        this.dataload = dataload;
        this.create_time = create_time;
    }
}
